<include file="public@header"/>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInUp js-check-wrap">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>账户明细</h5>
                   <!--  <div class="ibox-tools">
                        <a href="#" class="btn btn-primary btn-xs active">管理员</a>
                        <a href="{:url('user/add')}" class="btn btn-primary btn-xs">添加管理员</a>
                    </div> -->
                </div>
                <div class="ibox-content">
                    <form class="well form-inline margin-top-20" method="post" action="{:url('balance/index')}">
                        用户名:
                        <input type="text" class="form-control" name="user_login" style="width: 120px;" value="{:input('request.user_login/s','')}" placeholder="请输入{:lang('USERNAME')}">
                        邮箱:
                        <input type="text" class="form-control" name="user_email" style="width: 120px;" value="{:input('request.user_email/s','')}" placeholder="请输入{:lang('EMAIL')}">
                        <select class='form-control' name='type'>
                            <option value=''>类别</option>
                            <option value='balance' <?php if(input('param.type/s')=='balance') echo 'selected';?> >余额</option>
                            <option value='score'   <?php if(input('param.type/s')=='score')   echo 'selected';?> >积分</option>
                        </select>
                        <input type="submit" class="btn btn-primary" value="搜索"/>
                        <a class="btn btn-danger" href="{:url('balance/index')}">清空</a>
                    </form>
                    <table class="table table-hover table-bordered table-list">
                    <thead>
                    <tr>
                        <th width="50">
                            ID
                        </th>
                        <th>
                            用户名
                        </th>
                        <th>
                            邮箱
                        </th>
                        <th>
                            金额
                        </th>
                        <th>
                           日期
                        </th>
                        <th>
                           说明
                        </th>
                        <th width="130">
                           操作
                        </th>
                    </tr>
                    </thead>
                    <tbody>
                  
                    <foreach name="rows" item="vo">
                    <tr>
                        <td>
                            {$vo.id}
                        </td>
                        <td>
                            {$vo.user_login}
                        </td>
                        <td>
                            {$vo.user_email}
                        </td>
                        <td>
                            {$vo.amount}
                        </td>
                        <td>
                           <?php echo date('Y-m-d H:i',$vo['create_at']);?>
                        </td>
                        <td>
                            {$vo.remark}
                        </td>
                        <td>
                            <a class="js-ajax-delete" href="{:url('balance/delete',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>
                        </td>
                    </tr>
                    </foreach>
                    </tbody>
                    </table>
                    <div class="pagination">
                            {$page|default=''}
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="__STATIC__/js/admin.js"></script>

</body>
</html>